#include "tcp.h"
#include <iostream>

using namespace std;

int main()
{
	TCPConnection conn;

	// closed state is default
	conn.work();
	conn.close();

	// now change to opened state
	cout<<endl;
	conn.open();

	// test on opened state
	cout<<endl;
	conn.open();
	conn.work();

	// now change to closed state
	cout<<endl;
	conn.close();

	// test on closed state
	cout<<endl;
	conn.work();
	conn.close();

	return 0;
}
